<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{  
            margin: 0;
            padding: 0;
        }
        html,body{
            width: 100%;
            height: 100%;
        }/*父级元素充满全屏*/
        body{
            background-color: pink;
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: center;
        }
        .heart{
            background-color: red;
            width: 200px;
            height: 200px;
            position: relative;
            transform: rotate(45deg);  /*rotate-旋转（角度-deg顺时针）*/
            animation: jump 1s ease-in 0s infinite alternate ;
            box-shadow: 0 0 30px red;
        }
        .heart::before{
            content: "";
            width: 200px;
            height: 200px;
            background-color: red;
            position: absolute;
            top: -100px;
            left: 0;
            border-radius: 100px 100px 0 0;
            box-shadow: 0 0 30px red;
        }
        .heart::after{
            content: "";
            width: 200px;
            height: 200px;
            background-color: red;
            position: absolute;
            top: 0;
            left: -100px;
            border-radius: 100px 0 0 100px;
            box-shadow: 0 0 30px red;
        }
        @keyframes jump{
            0%{
                transform: rotate(45deg) scale(0.7);    /*scale-缩放*/
            }
            100%{
                transform: rotate(45deg) scale(1.3);
            }
        }
    </style>
</head>
<body>
    <div class="heart">
        
    </div>
</body>
</html>